package org.xx.armory.config.log4j2;

import static org.xx.armory.commons.Validators.notBlank;

public final class ConsoleAppenderSection
        extends AppenderSection {
    private String target;

    public ConsoleAppenderSection() {
        setName("console");

        this.target = "SYSTEM_OUT";
    }

    public final String getTarget() {
        return target;
    }

    public final void setTarget(
            String target
    ) {
        this.target = notBlank(target, "target").trim().toUpperCase();
    }
}
